export interface columnsProps {
  title: string;
  slotHeader?: string;
  slot?: string;
  key: string;
  width?: number | string;
  minwidth?: number | string;
  unique?: string;
  headAlign?: string;
  Align?: string;
}

export const columns: columnsProps[] = [
  {
    key: 'C_INDEX',
    width: '3%',
    title: '#',
  },
  {
    key: 'cat_name',
    title: '分类名称',
  },
  {
    key: 'cat_deleted',
    slot: 'isSucc',
    title: '是否有效',
  },
  {
    key: 'cat_level',
    slot: 'sotr',
    title: '排序',
  },
  {
    key: '操作',
    slot: 'operation',
    title: '操作'
  }
]

export interface paginationObjProps {
  type: number;
  pageSize: number;
  pageNum: number;
  total: number;
}

export interface addCateFormProps {
  cat_name: string;
  // 父级分类的Id
  cat_pid: number;
  // 分类的等级，默认要添加的是1级分类
  cat_level: number
}